<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<?php include_http_metas() ?>
<?php include_metas() ?>
<?php include_title() ?>
<link rel="shortcut icon" href="/favicon.ico" />
<?php include_stylesheets() ?>
<?php use_javascript('events.js') ?>
<?php include_javascripts() ?>

<!--[if lt IE 7]><style type="text/css" media="screen">@import "/css/ie.css";</style><![endif]-->
</head>
<body>
<script type='text/javascript'
	src="http://script.days.ru/calendar.php?advanced=1&dayicon=1"></script>
<div id="main">
<div class="main">
<div class="wrapper">
<div id="header">
<div class="header"><?php include_component('default','loginbox')?></div>
<h1 class="logo"><?php echo link_to('На главную','default/index') ?></h1>
<ul id="menu">
	<li><?php echo link_to('Главная','default/index')?></li>
	<li><?php echo link_to('О нас','page/about-project')?></li>
	<li><?php echo link_to('Галерея','media/index')?></li>
	<li><?php echo link_to('Вопросы','question/index')?></li>
	<li><?php echo link_to('Общение', 'sfForumCategory/index')?></li>
</ul>
</div>
<div id="content">
<div class="twocolumns">
<div class="content">
<div class="box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame">
<div class="text"><?php echo $sf_content ?></div>
</div>
</div>
<div class="b">&nbsp;</div>
</div>
<div class="box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame">
<div class="heading title">
<div class="item">
<ul>
	<li><a class="active" id="nextbut" onclick="shownext()"><?php // TODO: MAKE WITH jq_link_to_remote
//echo jq_link_to_remote(, $options, "Ближайшие события"); ?>Ближайшие
	события</a></li>
	<!--  class="active"  -->
	<li><a class="inactive" id="prevbut" onclick="showprevious()"><?php //echo jq_link_to_remote( , array(), "Прошедшие события"); ?>Прошедшие
	события</a></li>
</ul>
</div>
</div>
<div id="included" class="text"><?php 				// INCLUDES NEAREST	OR LATEST
include_component('event','shownearest',array('near_or_late'=>1)); ?></div>
<div id="prev_events" class="text"><?php 				// INCLUDES NEAREST	OR LATEST
include_component('event','shownearest',array('near_or_late'=>2)); ?></div>
</div>
</div>
<div class="b">&nbsp;</div>
</div>

<!-- НЕДАВНО ЗАРЕГИСТРИРОВАННЫЕ УЧАСТНИКИ -->

<div class="box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame">
<div class="heading">
<div class="item">
<h2>Недавно зарегистрированные участники</h2>
</div>
</div>
<div>
<?php include_component('myaccount', 'showlastregistered'); ?>
</div>
</div>
</div>
<div class="b">&nbsp;</div>
</div>

<!-- КОНЕЦ УЧАСТНИКОВ --> <!-- Pravoslavniy calendar -->

<div class="box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame">
<div class="heading">
<div class="item">
<h2>Православный календарь</h2>
</div>
</div>
<div class="calend">
<table>
	<tr>
		<td>
		<div class="icon"><script type='text/javascript'>print_icon();</script>
		</div>
		</td>
		<td>
		<div class="text5">
		<div><script type='text/javascript'>print_day();</script> <br />
		<script type='text/javascript'>print_week();</script> <script
			type='text/javascript'>print_post();</script></div>
		<div class="vizr"></div>
		<div class="saints"><script type='text/javascript'>print_saints();</script>
		</div>
		</div>
		</td>
	</tr>
</table>
</div>
</div>
</div>
<div class="b">&nbsp;</div>
</div>

<!-- end of calendar  --></div>
<div class="sidebar">
<div class="video-box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame"><img src="/images/img-video.jpg" alt="" /></div>
</div>
<div class="b">&nbsp;</div>
</div>
<div class="box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame">
<div class="heading"><span><img src="/images/ico-news.png" alt="" /></span>
<strong><?php echo link_to('Последние новости','news/index') ?></strong></div>
<div class="text"><?php include_component('news', 'showsomeitems'); ?></div>
</div>
</div>
<div class="b">&nbsp;</div>
</div>

<!-- Articles -->

<div class="box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame">
<div class="heading"><span><img src="/images/ico-articles.png" alt="" /></span>
<strong><?php echo link_to('Публикации','article/index') ?></strong></div>
<div class="text6"><?php include_component('article', 'viewlist'); ?></div>
</div>
</div>
<div class="b">&nbsp;</div>
</div>

<!-- End of articles --></div>
</div>
<div class="main-box">
<div class="t">&nbsp;</div>
<div class="c">
<div class="frame">
<div class="heading">
<div class="heading">
<div class="item">
<h2>Случайные фото</h2>
</div>
</div>
</div>
<div class="text">
<?php include_component('media', 'sevenrandomphotos') ?>
<!-- <ul class="item-list">
	<li><a href="#"><img src="/images/image1.jpg" alt="" /></a></li>
	<li><a href="#"><img src="/images/image2.jpg" alt="" /></a></li>
	<li><a href="#"><img src="/images/image3.jpg" alt="" /></a></li>
	<li><a href="#"><img src="/images/image4.jpg" alt="" /></a></li>
	<li><a href="#"><img src="/images/image2.jpg" alt="" /></a></li>
	<li><a href="#"><img src="/images/image3.jpg" alt="" /></a></li>
	<li><a href="#"><img src="/images/image4.jpg" alt="" /></a></li>
</ul> -->

</div>
</div>
</div>
<div class="b">&nbsp;</div>
</div>
</div>
<?php include_partial('default/footer')?>
<a href="http://www.piogroup.net" target="_blank"
	style="font-size: 12px;">Разработка сайта PIOGROUP</a></div>
</div>
</div>
</body>
</html>